package org.example.adapter;

/**
 * @author Stranger
 * @version 1.0
 * @description: TODO
 * @date 2022/11/6 19:08
 */
public class XPrintlnAdaptor implements XPrintlnf {

    private ThirdPartInterface thirdPartInterface;

    public void Xprintlnf() {
        thirdPartInterface.thirdPartPrintlnf();
        System.out.println("适配了第三方打印对Xprintlnf打印");
    }

    public XPrintlnAdaptor(ThirdPartInterface thirdPartInterface) {
        this.thirdPartInterface = thirdPartInterface;
    }
}
